<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.SlideView类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_slide_view.html">SlideView</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_slide_view-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.SlideView类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.SlideView 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_slide_view.png" usemap="#awtk.SlideView_map" alt=""/>
  <map id="awtk.SlideView_map" name="awtk.SlideView_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a59c85c29bc5640b43591f95b39ed57f1"><td class="memItemLeft" align="right" valign="top"><a id="a59c85c29bc5640b43591f95b39ed57f1"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SlideView</b> (long nativeObj)</td></tr>
<tr class="separator:a59c85c29bc5640b43591f95b39ed57f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90ca2a4ba3905e619e048a9cb7c269b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_view.html#a90ca2a4ba3905e619e048a9cb7c269b5">setAutoPlay</a> (int auto_play)</td></tr>
<tr class="separator:a90ca2a4ba3905e619e048a9cb7c269b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae885987d5ec36d35305c4cb8c05d42d9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_view.html#ae885987d5ec36d35305c4cb8c05d42d9">setActive</a> (int index)</td></tr>
<tr class="separator:ae885987d5ec36d35305c4cb8c05d42d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75caeeb7d6183d6664c88a616533848e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_view.html#a75caeeb7d6183d6664c88a616533848e">setVertical</a> (boolean vertical)</td></tr>
<tr class="separator:a75caeeb7d6183d6664c88a616533848e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade7bfc563798a6995aa907eb2e618f31"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_view.html#ade7bfc563798a6995aa907eb2e618f31">setAnimHint</a> (String anim_hint)</td></tr>
<tr class="separator:ade7bfc563798a6995aa907eb2e618f31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdcb9c697bd9a355f48b042f9846bba2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_view.html#acdcb9c697bd9a355f48b042f9846bba2">setLoop</a> (boolean loop)</td></tr>
<tr class="separator:acdcb9c697bd9a355f48b042f9846bba2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a589b50bd34474dd06e5497e08af0f421"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_view.html#a589b50bd34474dd06e5497e08af0f421">getVertical</a> ()</td></tr>
<tr class="separator:a589b50bd34474dd06e5497e08af0f421"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb54a55fc9cf590c953457bbf63dcf1f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_view.html#afb54a55fc9cf590c953457bbf63dcf1f">getAutoPlay</a> ()</td></tr>
<tr class="separator:afb54a55fc9cf590c953457bbf63dcf1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc31e526ade960f8ac2e8f1c07a9b537"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_view.html#acc31e526ade960f8ac2e8f1c07a9b537">getLoop</a> ()</td></tr>
<tr class="separator:acc31e526ade960f8ac2e8f1c07a9b537"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af29d4603fd11cac639133978e2df1a33"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_view.html#af29d4603fd11cac639133978e2df1a33">getAnimHint</a> ()</td></tr>
<tr class="separator:af29d4603fd11cac639133978e2df1a33"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:af9afd0ebddd28decdb70806141628cda"><td class="memItemLeft" align="right" valign="top"><a id="af9afd0ebddd28decdb70806141628cda"></a>
static <a class="el" href="classawtk_1_1_slide_view.html">SlideView</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:af9afd0ebddd28decdb70806141628cda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b43ab49a1ecccd320d7a1f0f7cb2ea7"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_view.html#a1b43ab49a1ecccd320d7a1f0f7cb2ea7">create</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a1b43ab49a1ecccd320d7a1f0f7cb2ea7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d62155f44f3dbc8d3424e7b9f708a8a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_slide_view.html">SlideView</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_slide_view.html#a1d62155f44f3dbc8d3424e7b9f708a8a">cast</a> (Widget widget)</td></tr>
<tr class="separator:a1d62155f44f3dbc8d3424e7b9f708a8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a67c2dfe54a101ee1f99faa14011af2d3"><td class="memItemLeft" align="right" valign="top"><a id="a67c2dfe54a101ee1f99faa14011af2d3"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a67c2dfe54a101ee1f99faa14011af2d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>滑动视图。</p>
<p>滑动视图可以管理多个页面，并通过滑动来切换当前页面。也可以管理多张图片，让它们自动切换。</p>
<p>slide_view_t是widget的子类控件，widget_t的函数均适用于slide_view_t控件。</p>
<p>在xml中使用"slide\_view"标签创建滑动视图控件。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">slide_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;dot&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">children_layout</span>=<span class="stringliteral">&quot;default(w=60,h=60,m=5,s=10)&quot;</span>&gt;</div><div class="line">...</div><div class="line">&lt;/<span class="keywordtype">view</span>&gt;</div><div class="line">&lt;<span class="keywordtype">view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">children_layout</span>=<span class="stringliteral">&quot;default(w=60,h=60,m=5,s=10)&quot;</span>&gt;</div><div class="line">...</div><div class="line">&lt;/<span class="keywordtype">view</span>&gt;</div><div class="line">&lt;/<span class="keywordtype">slide_view</span>&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/slide_view.xml">slide_view.xml</a></p>
<p>在c代码中使用函数slide_view_create创建滑动视图控件。如：</p>
<p>完整示例请参考： <a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/slide_view.c">slide_view demo</a></p>
<p>可用通过style来设置控件的显示风格，如背景颜色和指示器的图标等等。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;dot&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">normal</span>  <span class="keyword">icon</span>=<span class="stringliteral">&quot;dot&quot;</span> <span class="keyword">active_icon</span>=<span class="stringliteral">&quot;active_dot&quot;</span>/&gt;</div><div class="line">&lt;/<span class="keywordtype">style</span>&gt;</div></div><!-- fragment --><p>如果希望背景图片跟随滚动，请将背景图片设置到页面上，否则设置到slide_view上。</p>
<p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L458">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a1d62155f44f3dbc8d3424e7b9f708a8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d62155f44f3dbc8d3424e7b9f708a8a">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_slide_view.html">SlideView</a> awtk.SlideView.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为slide_view对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>slide_view对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>slide_view对象。 </dd></dl>

</div>
</div>
<a id="a1b43ab49a1ecccd320d7a1f0f7cb2ea7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b43ab49a1ecccd320d7a1f0f7cb2ea7">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.SlideView.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slide_view对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="af29d4603fd11cac639133978e2df1a33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af29d4603fd11cac639133978e2df1a33">&#9670;&nbsp;</a></span>getAnimHint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.SlideView.getAnimHint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>页面切换效果。 </p>

</div>
</div>
<a id="afb54a55fc9cf590c953457bbf63dcf1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb54a55fc9cf590c953457bbf63dcf1f">&#9670;&nbsp;</a></span>getAutoPlay()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.SlideView.getAutoPlay </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>自动播放。0表示禁止自动播放，非0表示自动播放时每一页播放的时间。 </p>

</div>
</div>
<a id="acc31e526ade960f8ac2e8f1c07a9b537"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc31e526ade960f8ac2e8f1c07a9b537">&#9670;&nbsp;</a></span>getLoop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.SlideView.getLoop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>循环切换模式。</p>
<p>向后切换：切换到最后一页时，再往后切换就到第一页。 向前切换：切换到第一页时，再往前切换就到最后一页。 </p>

</div>
</div>
<a id="a589b50bd34474dd06e5497e08af0f421"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a589b50bd34474dd06e5497e08af0f421">&#9670;&nbsp;</a></span>getVertical()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.SlideView.getVertical </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否为上下滑动模式。 </p>

</div>
</div>
<a id="ae885987d5ec36d35305c4cb8c05d42d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae885987d5ec36d35305c4cb8c05d42d9">&#9670;&nbsp;</a></span>setActive()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideView.setActive </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置当前页的序号。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>当前页的序号。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ade7bfc563798a6995aa907eb2e618f31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade7bfc563798a6995aa907eb2e618f31">&#9670;&nbsp;</a></span>setAnimHint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideView.setAnimHint </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>anim_hint</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置页面切换动画。</p>
<p>anim_hint取值如下：</p>
<ul>
<li>"translate"：平移。</li>
<li>"overlap"：覆盖。</li>
<li>"overlap\_with\_alpha"：覆盖并改变透明度。</li>
</ul>
<p>使用"overlap"或"overlap\_with\_alpha"动画时，背景图片最好指定到page上。</p>
<p>使用"overlap\_with\_alpha"动画时，slideview的背景设置为黑色， 或slideview的背景设置为透明，窗口的背景设置为黑色，以获得更好的视觉效果和性能。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">anim_hint</td><td>页面切换动画。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a90ca2a4ba3905e619e048a9cb7c269b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90ca2a4ba3905e619e048a9cb7c269b5">&#9670;&nbsp;</a></span>setAutoPlay()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideView.setAutoPlay </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>auto_play</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为自动播放模式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">auto_play</td><td>0表示禁止自动播放，非0表示自动播放时每一页播放的时间。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="acdcb9c697bd9a355f48b042f9846bba2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdcb9c697bd9a355f48b042f9846bba2">&#9670;&nbsp;</a></span>setLoop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideView.setLoop </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>loop</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置循环切换模式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">loop</td><td>是否启用循环切换模式。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a75caeeb7d6183d6664c88a616533848e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75caeeb7d6183d6664c88a616533848e">&#9670;&nbsp;</a></span>setVertical()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.SlideView.setVertical </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>vertical</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为上下滑动(缺省为左右滑动)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">vertical</td><td>TRUE表示上下滑动，FALSE表示左右滑动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/SlideView.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
